const enterpriceModel = () => import('@/views/enterpriseModel/index.vue')
const enterpriceInfo = () => import('@/views/enterpriseModel/info/index.vue')
const enterpriceInfoList = () => import('@/views/enterpriseModel/info/pageList/index.vue')
const companyDetail = () => import('@/views/enterpriseModel/info/detail/index.vue')
const repaymentHistory = () => import('@/views/enterpriseModel/repaymentHistory/index.vue')
const repaymentHistoryList = () => import('@/views/enterpriseModel/repaymentHistory/pageList/index.vue')
const repaymentHistoryDetail = () => import('@/views/enterpriseModel/repaymentHistory/detail/index.vue')
const repaymentEntry = () => import('@/views/enterpriseModel/repaymentEntry/index.vue')
const repaymentEntryList = () => import('@/views/enterpriseModel/repaymentEntry/pageList/index.vue')
const repaymentEntryDetail = () => import('@/views/enterpriseModel/repaymentEntry/detail/index.vue')

export default {
  path: 'enterprice-model',
  name: 'enterpriceModel',
  component: enterpriceModel,
  children: [
    {
      path: 'enterprice-info',
      name: 'enterpriceInfo',
      component: enterpriceInfo,
      children: [
        {
          path: 'enterprice-info-list',
          name: 'enterpriceInfoList',
          component: enterpriceInfoList,
          meta: {
            title: '企业信息',
          },
        },
        {
          path: 'company-detail',
          name: 'companyDetail',
          component: companyDetail,
          meta: {
            title: '详情',
          },
        },
      ],
    },
    {
      path: 'repayment-history',
      name: 'repaymentHistory',
      component: repaymentHistory,
      children: [
        {
          path: 'repayment-history-list',
          name: 'repaymentHistoryList',
          component: repaymentHistoryList,
          meta: {
            title: '还款记录',
          },
        },
        {
          path: 'repayment-history-detail',
          name: 'repaymentHistoryDetail',
          component: repaymentHistoryDetail,
          meta: {
            title: '还款明细',
          },
        },
      ],
    },
    {
      path: 'repayment-entry',
      name: 'repaymentEntry',
      component: repaymentEntry,
      children: [
        {
          path: 'repayment-entry-list',
          name: 'repaymentEntryList',
          component: repaymentEntryList,
          meta: {
            title: '还款录入',
          },
        },
        {
          path: 'repayment-entry-detail',
          name: 'repaymentEntryDetail',
          component: repaymentEntryDetail,
          meta: {
            title: '详情',
          },
        },
      ],
    },
  ],
}
